package com.gitee.cui.netty.decoder;

import com.gitee.cui.util.Logger;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * 字符串后续处理器
 * @author cuiqingqiang
 * @version 1.0
 * @date 2021/10/22 20:46
 **/
public class StringProcessHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        String value = (String) msg;
        Logger.info("读取到一个字符串：" + value);
    }
}
